﻿package  
{
	import com.saint.utils.Logger;
	import com.saint.video.VideoPlayerApplication;
	import flash.display.Sprite;
	import flash.display.Stage;
	/**
	 * class to initiate the video player test
	 * 
	 * @author kembera
	 */
	public class VideoPlayerTest extends Sprite
	{
		/* creates a single player with default settings */
		private static const MODE_SINGLE_PLAYER_DEFAULT:String = "single player default";
		
		public function VideoPlayerTest() 
		{			
			Logger.setLogLevel(Logger.INFO);
			var testMode:String = MODE_SINGLE_PLAYER_DEFAULT;
			Logger.info("VideoPlayerTest.VideoPlayerTest mode:" + testMode);
			Logger.info("VideoPlayerTest.VideoPlayerTest stage:" + stage);
			
			switch (testMode)
			{
				default:
					var videoPlayer:VideoPlayerApplication = new VideoPlayerApplication(stage);	
					addChild(videoPlayer);
					videoPlayer.playNewVideo("flv/LloydsSelects_512K.flv");
				break;							
			}
			
		}
		
	}

}